{block content}
  <div style="height: 200px; overflow-y: scroll; ">
    {control photoList}
  </div>
  <hr>
  <h1>Přidat článek</h1>
    
  {form addArticleForm class=>form-horizontal}
     <div class="form-group">
      <ul class="errors col-xs-4 col-xs-offset-4" n:if="$form->hasErrors()">
        <li n:foreach="$form->errors as $error" class="alert alert-danger alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          <strong>{$error}</strong>
        </li>
      </ul>
    </div>

    <div class="form-group">
      {label title class=>array(control-label, col-xs-2)/}
      <div class="col-xs-3">
        {input title}
      </div>

      {label link class=>array(control-label, col-xs-2)/}
      <div class="col-xs-3">
        {input link}
      </div>
    </div>
    
    <div class="form-group">
      {label description class=>array(control-label, col-xs-2)/}
      <div class="col-xs-3">
        {input description}
      </div>
      {label keywords class=>array(control-label, col-xs-2)/}
      <div class="col-xs-3">
        {input keywords}
      </div>
    </div>
    
    <div>
      {label content /}
      {input content}
    </div>
    <br>
    <div class="form-group">
      <div class="col-xs-4 col-xs-offset-5">
        {input send class=>array(btn, btn-success, btn-md)}
        &nbsp;
        <a n:href="Article:default" class="btn btn-danger btn-md">Zrušit</a>
      </div>
    </div>
  {/form}
  
  <script type="text/javascript">
      CKEDITOR.replace('frm-addArticleForm-content');
  </script>
{/block}